package com.changgou.delay.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "delay")
@RequestMapping("/delay")
public interface DelayFeign {

    @RequestMapping("/send")
    void sendMessage(@RequestBody String msg, @RequestParam(name = "delayQueue") String delayQueue);
}
